﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Restaurant.aspx.cs" MasterPageFile="~/Site.master" Inherits="splitthecheck.WebForm1" %>



<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style6
        {
            width: 649px;
            height: 92px;
        }
        .style10
        {
            width: 584px;
            height: 71px;
        }
        .style11
        {
            width: 350px;
        }
        .style13
        {
            width: 454px;
        }
        .style14
        {
            width: 665px;
        }
    </style>
</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<form id="Form1" runat="server">
<div id="page" class="style3">

    <br />
    <br />

</div>
    <table>
        <tr>            
            <td valign="top" class="style13">
           <div class="style14">
                <div id="page-bgtop">
			        <div id="content2" class="style6">
				        <div class="post">
					        <h2>Welcome to willtheysplitthecheck.com</h2>
					<div class="entry">
						<p class="style10">Are you FED up with restaurants not splitting the check!? Well 
                            stress no longer, you have stumbled upon your new favorite tool. Use </p></div>
					</div>
				</div>
			</div>
                &nbsp;State&nbsp;<asp:DropDownList 
            ID="DropDownList2" runat="server">
            <asp:ListItem>Alabama</asp:ListItem>
            <asp:ListItem>Alaska</asp:ListItem>
            <asp:ListItem>Arizona</asp:ListItem>
            <asp:ListItem>Arkansas</asp:ListItem>
            <asp:ListItem>California</asp:ListItem>
            <asp:ListItem>Colorado</asp:ListItem>
            <asp:ListItem>Connecticut</asp:ListItem>
            <asp:ListItem>Delaware</asp:ListItem>
            <asp:ListItem>Florida</asp:ListItem>
            <asp:ListItem>Georgia</asp:ListItem>
            <asp:ListItem>Hawaii</asp:ListItem>
            <asp:ListItem>Idaho</asp:ListItem>
            <asp:ListItem>Illinois</asp:ListItem>
            <asp:ListItem>Indiana</asp:ListItem>
            <asp:ListItem>Iowa</asp:ListItem>
            <asp:ListItem>Kansas</asp:ListItem>
            <asp:ListItem>Kentucky</asp:ListItem>
            <asp:ListItem>Louisiana</asp:ListItem>
            <asp:ListItem>Maine</asp:ListItem>
            <asp:ListItem>Maryland</asp:ListItem>
            <asp:ListItem>Massachusetts</asp:ListItem>
            <asp:ListItem>Michigan</asp:ListItem>
            <asp:ListItem>Minnesota</asp:ListItem>
            <asp:ListItem>Mississippi</asp:ListItem>
            <asp:ListItem>Missouri</asp:ListItem>
            <asp:ListItem>Montana</asp:ListItem>
            <asp:ListItem>Nebraska</asp:ListItem>
            <asp:ListItem>Nevada</asp:ListItem>
            <asp:ListItem>New Hanpshire</asp:ListItem>
            <asp:ListItem>New Jersey</asp:ListItem>
            <asp:ListItem>New Mexico</asp:ListItem>
            <asp:ListItem>New York</asp:ListItem>
            <asp:ListItem>North Carolina</asp:ListItem>
            <asp:ListItem>North Dakota</asp:ListItem>
            <asp:ListItem>Ohio</asp:ListItem>
            <asp:ListItem>Oklahoma</asp:ListItem>
            <asp:ListItem>Oregon</asp:ListItem>
            <asp:ListItem>Pennsylvania</asp:ListItem>
            <asp:ListItem>Rhode Island</asp:ListItem>
            <asp:ListItem>South Carolina</asp:ListItem>
            <asp:ListItem>South Dakota</asp:ListItem>
            <asp:ListItem>Tennessee</asp:ListItem>
            <asp:ListItem>Texas</asp:ListItem>
            <asp:ListItem>Utah</asp:ListItem>
            <asp:ListItem>Vermont</asp:ListItem>
            <asp:ListItem>Virginia</asp:ListItem>
            <asp:ListItem>Washignton</asp:ListItem>
            <asp:ListItem>West Virginia</asp:ListItem>
            <asp:ListItem>Wisconsion</asp:ListItem>
            <asp:ListItem>Wyoming</asp:ListItem>
        </asp:DropDownList>&nbsp;City<asp:TextBox ID="City" runat="server" Height="26px" Width="128px" 
            ></asp:TextBox>
&nbsp;Zip<asp:TextBox ID="Zip" runat="server" Height="27px" Width="81px" 
            ></asp:TextBox>
                
  
        Restaurant type<asp:DropDownList ID="DropDownList1" runat="server" 
            Height="24px" Width="222px" 
            >
            <asp:ListItem>All Types</asp:ListItem>
            <asp:ListItem>Fine Dining</asp:ListItem>
            <asp:ListItem>Fast Food</asp:ListItem>
            <asp:ListItem>Casual Dining</asp:ListItem>
            <asp:ListItem>Family Style</asp:ListItem>
            <asp:ListItem>FastCasual</asp:ListItem>
        </asp:DropDownList>
        <asp:Button ID="Button1" runat="server" Text="Search" 
            onclick="Button1_Click"  />        
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
  
    <h3>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="rnumber" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="rname" HeaderText="rname" SortExpression="rname" />
                <asp:BoundField DataField="raddress" HeaderText="raddress" 
                    SortExpression="raddress" />
                <asp:BoundField DataField="rstate" HeaderText="rstate" 
                    SortExpression="rstate" />
                <asp:BoundField DataField="rcity" HeaderText="rcity" SortExpression="rcity" />
                <asp:BoundField DataField="rzipcode" HeaderText="rzipcode" 
                    SortExpression="rzipcode" />
                <asp:BoundField DataField="rnumber" HeaderText="rnumber" ReadOnly="True" 
                    SortExpression="rnumber" />
                <asp:BoundField DataField="rtype" HeaderText="rtype" SortExpression="rtype" />
                <asp:BoundField DataField="Split The Check" HeaderText="Split The Check" 
                    SortExpression="Split The Check" />
                <asp:BoundField DataField="Dont Split the Check" 
                    HeaderText="Dont Split the Check" SortExpression="Dont Split the Check" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:jatConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:jatConnectionString.ProviderName %>" 
            SelectCommand="SELECT rname, raddress, rstate, rcity, rzipcode, rnumber, rtype, `Split The Check`, `Dont Split the Check` FROM RESTAURANT">
        </asp:SqlDataSource>
    <asp:ListBox ID="ListBox1" runat="server" Height="111px" Width="338px">
        </asp:ListBox>
        </h3>
    <h3 dir="ltr">
        <a href="Add.aspx">Dont see your restaurant?? Click Here!</a>
        </h3>
        </div>
            </td>
            <td valign="top" class="style11">
                <img src="images/img01vert.jpg" alt="veggie plate" /></td>
        </tr>
        
    </table>
   
    
    

        

</form>
   
</asp:Content>

